<?php
/**
 * Created by PhpStorm.
 * User: jksen
 * Date: 2018/1/29
 * Time: 下午5:06
 */

namespace app\common\ShaoHuoPay\Contracts;


interface GatewayApplicationInterface
{
    /**
     * Pay an order.
     * @param $gateway
     * @param $params
     * @return mixed
     */
    public function pay($gateway, $params);

    /**
     * Refund an order.
     * @param $order
     * @return mixed
     */
    public function refund($order);

    /**
     * Verify a request.
     * @return mixed
     */
    public function verify();

    /**
     * echo success to server.
     * @return mixed
     *
     */
    public function success();
}